package com.ap.core.business.message.response.translators.listener;

import com.ap.core.exception.BusinessFailureException;
import com.ap.core.message.info.BaseMessageInfo;

/**
 * User: Ranjit.Singh
 * Response translation listener that receives callbacks on successful translation of header/message.
 */
public interface ResponseListener {

    /**
     *  On Message Header Response
     * @param response - response object
     */
    void onMessageHeaderResponse(BaseMessageInfo response) throws BusinessFailureException;

    /**
     *  On Message Response
     * @param response - response object
     */
    void onMessageResponse(BaseMessageInfo response);

}
